<?php

namespace Database\Factories;

use App\Models\StorePink;
use Illuminate\Database\Eloquent\Factories\Factory;

class StorePinkFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = StorePink::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'user_id' => $this->faker->numberBetween(1, 10),
            'product_id' => $this->faker->numberBetween(1, 10),
            'order_id' => $this->faker->numberBetween(1, 10),
            'order_id_key' => $this->faker->numberBetween(1, 50),
            'combination_goods_id' => $this->faker->numberBetween(0, 50),
            'head_id' => $this->faker->numberBetween(0, 2),
            'people' => $this->faker->numberBetween(0, 5),
            'total_num' => $this->faker->numberBetween(0, 5),
            'total_price' => $this->faker->randomFloat(2, 0, 50),
            'price' => $this->faker->randomFloat(2, 0, 50),
            'start_time' => date('Y-m-d H:i:s',$this->faker->numberBetween(1500000000, 1601000000)),
            'stop_time' => date('Y-m-d H:i:s',$this->faker->numberBetween(1601000000, time())),
            'is_tpl' => $this->faker->numberBetween(0, 1),
            'is_refund' => $this->faker->numberBetween(0, 1),
            'status' => $this->faker->randomElement(['haveInHand','completed','noCompleted']),
            'is_virtual' => $this->faker->numberBetween(0, 1),
        ];
    }
}
